<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js'></script>
<style>
.abc table {
	background-color: #CCCCCC;
	border-spacing: 1px;
}
.abc td {
	background-color: #ffffff;
	padding:4px;
}
.abc th {
	text-align: left;
}
</style>
<form method='post'>
<fieldset>
<?php

$Form->init( $form);
$Form->errorDisplay();

echo '<hr>';

$grid=new FW24hGridHelper;

$arrHeader['user_id'] = array( 'Title'=>'Tieu de 1', 'function'=>'optionBox', 'headerType'=>'checkbox');
$arrHeader['user_name'] = array( 'Title'=>'Tieu de 2', 'function'=>null);
$arrHeader['action'] = array( 'Title'=>'Tieu de 3', 'function'=>'doAction', 'key'=>'user_id');
$grid->setHeader( $arrHeader);

$edit_url = $URL->html_link( 'grid2/edit/%s', false, true);
$delete_url = $URL->html_link( 'grid2/del/%s', false, true);
$grid->__editURL = "<a href='{$edit_url}'>Edit</a>";
$grid->__deleteURL = "<br><a href='{$delete_url}' class='grid_delete'>Delete</a>";

echo '<div class="abc">';
pre( $grid->display( $users));
echo "</div>";

?>

<input type='text' name='abc' value="<?php $Form->value( 'abc'); ?>"><?php $Form->error( 'abc'); ?>
<input type='submit'>
</fieldset>
</form>
<script>
$(document).ready(function(){
	$(function () { // this line makes sure this code runs on page load
		$('#cbxCheckAll').click(function () {
			$checkall = $(this); // set to variable for performance
			$close = $checkall.parents('fieldset:eq(0)').find('input'); // set to variable for performance
			$checkall.attr('checked') !== true ? $close.removeAttr('checked') : $close.attr('checked', 'checked');
		});
		$('.grid_delete').click( function () {
			var answer = confirm( "Ban co chac chan xoa?");
			if( !answer) {
				return false;
			}
		});
	});
});
</script>